<?php
/**
	Formul�rio de remo��o de um Fornecedor de Materiais.
*/
if( !function_exists('__autoload') )
{
    function __autoload($class_name) {
    require_once $class_name . '.php';
    }
}

SAEO::ValidarAcesso( array( 0, 4 ) );

?>
<html>
           <head>
           <title>SAEO - Remover Cadastro de Fornecedor</title>
           <script type='text/javascript' src='templates/hintbox.js'></script>
           <link rel='stylesheet' type='text/css' href='templates/estilos.css'>
           <script type='text/javascript' src='templates/js.js'></script>
           <script type='text/javascript' src='templates/ajax.js'></script>
           <script type='text/javascript' src='templates/setor.js'></script>
           <script type='text/javascript' src='templates/validacoes.js'></script>
           <script type='text/javascript' src='templates/fornecedor.js'></script>
           </head>
     <body class='body'>
     <form name='removerFornecedor' action='EnviarDadosFornecedor.php?operacao=3' method='post' id='removerFornecedor'>
     <table width='779' border='0' cellspacing='0' cellpadding='0' align='center' bgcolor='#FFFFFF'>
              <tr>
                <td colspan='2'>
                <?php include "Topo.php"; ?>
                </td>
            </tr>
            <tr>
                <td><div class='titulosTabelas' style='width:779; height:20; background:url(templates/tabela.jpg)'>REMOVER CADASTRO DE FORNECEDOR</div></td>
            </tr>
            <tr>
                <td colspan='2'>&nbsp;</td>
            </tr>
            <tr>
                <td><table class='tabela' width='650' border='0' cellspacing='0' cellpadding='0' align='center' bgcolor='#FFFFFF'>
                           <tr>
                               <td>&nbsp;</td>
                           </tr>
                           <tr>
                               <td class='textoTabelas'  width='30%'>&nbsp;Tipo:</td>
                               <td><select name='tipoInformacao' id='tipoInformacao' class='inputTexto' onchange='MostrarDiv( this.value, document.getElementById("informacao")); MostrarTitulosAlterar(this.value); CarregarCategorias(this.value); EsconderDiv(document.getElementById("deletarFornecedor"));'>
                                           <option value='0'>Selecione o Tipo do Cadastro</option>
                                           <option value='1'>Material</option>
                                           <option value='2'>Servi�o</option>
                               </select>  <a href='#' class='hintanchor' onMouseover='showhint("A qual tipo pertence o fornecedor a ser removido. Op��es: Material ou Servi�o.", this, event, "270px");'>[?]</a>
                               </td>

                           </tr>
                           <tr>
                               <td colspan='2'>&nbsp;</td>
                           </tr>
                           <tr>
                               <td colspan='2'>
                                   <div id='informacao' style='display: none'>
                                        <table width='650' border='0' class='tabela' style='border-style: none' cellspacing='0' cellpadding='0' align='center' bgcolor='#FFFFE3'>
                                               <tr>
                                                   <td class='textoTabelas' style='width:40%'><span id='existente'></span></td>
                                                   <td style='width:20%'>&nbsp</td>
                                                   <td class='textoTabelas' style='width:40%;'><span id='selecionada' style='margin-left:48px;'></span></td>
                                               </tr>
                                               <tr>
                                                   <td >
                                                       <select name='fornecedor_tipo' id='listaInformacao' style='margin-left:15px' class='inputTexto' onchange='EsconderDiv(document.getElementById("deletarFornecedor")); CarregarFornecedorPorEspecializacao();'>
                                                               <option value=0></option>
                                                       </select>
                                                   </td>
                                                   <td>
                                                       &nbsp;
                                                   </td>
                                                   <td>
                                                       <select name='fornecedor' id='listaFornecedores' class='inputTexto' style='float:right;margin-right:10px' onchange='MostrarDiv( this.value, document.getElementById("deletarFornecedor"));'>
                                                       <option id='opcaoFornecedor' value=0></option>
                                                       </select>
                                                       &nbsp;
                                                   </td>
                                               </tr>
                                        </table>
                                   </div>
                               </td>
                           </tr>
                           <tr>
                               <td colspan='2'>&nbsp;</td>
                           </tr>
                           <tr>
                               <td colspan='2'>
                                   <div id='deletarFornecedor' style='display: none'>
                                   <table width='650' class='tabela' style='border-style: none' border='0' cellspacing='0' cellpadding='0' align='center' bgcolor='#FFFFE3'>
                                   <tr>
                                       <td colspan='2' height='46'><div style='position:relative;left:540px'><input type='image' style='width:100px;height:30px;' src='templates/btremover.JPG'/></div></td>
                                   </tr>
                                   </table>
                                   </div>
                               </td>
                           </tr>

                     </table>
                </td>
            </tr>
            <tr>
                <td>&nbsp;</td>
            </tr>
            <tfoot>
           <tr>
                <td colspan='2'>&nbsp;</td>
            </tr>
                   <tr>
                       <?php include 'rodapeCreditos.php'; ?>
            </tr>
            </tfoot>
     </table>
     </form>
     </body>
     </html>